<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>

<body>
	<script>
		let arr = [1,2,3,44,1,12,123,3,1]
		Array.prototype.uniq = function () {
			return [...new Set(this)]
			
		}
		console.log(arr.uniq());
		
		

	</script>
</body>

</html>